package mysql

import "gorm.io/gorm"

type Product struct {
	gorm.Model
	UserId       int64   `gorm:"type:int(11);not null;comment:用户ID"`
	Title        string  `gorm:"type:varchar(20);not null;comment:商品标题"`
	Price        float64 `gorm:"type:decimal(10,2);not null;comment:商品价格"`
	BrowseNumber int64   `gorm:"type:int(11);not null;comment:浏览量"`
	Image        string  `gorm:"type:varchar(500);not null;comment:商品主图"`
	ClassId      int64   `gorm:"type:int(11);not null;comment:分类ID"`
}
